package com.jiangjiang.eshop.commodity.convert;

import com.jiangjiang.eshop.commodity.domain.GoodsSkuEntity;
import com.jiangjiang.eshop.commodity.dto.GoodsSkuDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @ClassName GoodsSkuConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/8/2 23:40
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface GoodsSkuConvert {
    List<GoodsSkuDTO> convertEntities2DTOList(List<GoodsSkuEntity> entities);

    GoodsSkuEntity convertDTO2Entity(GoodsSkuDTO dto);
}
